package A011thread;

public class A002_实现线程方式一_继承Thread类_重写run方法 {
    public static void main(String[] args) {
        TestThread_1 t1 = new TestThread_1();
        TestThread_1 t2 = new TestThread_1();
        t1.start();
        t2.start();
    }
}

class TestThread_1 extends Thread {
    @Override
    public void run() {
        System.out.println("测试线程!");
    }
}